<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="jquery.js"></script>

<input placeholder="请输入手机号码" />
<input placeholder="请输入验证码" />

<script>
    $.ajax({
        url:"http://test.hfjava.com/yzm.jsp",
        dataType:"jsonp",
        success:function(data){
            console.log(data);
            alert(data.code);
        }
})
</script>
</body>
</html>